﻿@model Hrm.Services.ModifyPasswordDto
@{
    ViewBag.PageTitle = "修改密码";
    Layout = "~/Views/Shared/_ClassMateMobileSubPageLayout.cshtml";
}

<section class="ui-container">
    <div id="ClassMateContent" class="ui-whitespace">
        <div class="ui-form ui-border-t">
            <form action="@Url.Action("ModifyPassword")" method="post">
                @Html.ValidationSummary(true, "", new { @class = "ui-txt-warning" })
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    @Html.LabelFor(model => model.OldPassword, htmlAttributes: new { @class = "ui-border-r" })
                    @Html.PasswordFor(model => model.OldPassword)
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    @Html.LabelFor(model => model.NewPassword, htmlAttributes: new { @class = "ui-border-r" })
                    @Html.PasswordFor(model => model.NewPassword)
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    @Html.LabelFor(model => model.NewSurePassword, htmlAttributes: new { @class = "ui-border-r" })
                    @Html.PasswordFor(model => model.NewSurePassword)
                </div>
                <div class="ui-btn-wrap">
                    <input type="submit" value="保存" class="ui-btn ui-btn-primary" />
                    <a href="@Url.Action("Setting")" class="ui-btn ui-btn-primary">返回</a>
                </div>
                <div class="ui-btn-wrap">
                    @Html.ValidationMessageFor(model => model.OldPassword, "", new { @class = "ui-txt-warning" })
                    @Html.ValidationMessageFor(model => model.NewPassword, "", new { @class = "ui-txt-warning" })
                    @Html.ValidationMessageFor(model => model.NewSurePassword, "", new { @class = "ui-txt-warning" })
                </div>
            </form>
        </div>
    </div>
</section>